package br.com.viewcar.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.viewcar.entity.Cliente;
import br.com.viewcar.util.CheckrotaUtil;

@Repository
@Transactional
public class ClienteService extends BaseService<Integer, Cliente> {


	public List<Cliente> findAllOrderByNome() {
		
		if (CheckrotaUtil.isAdministradorSistema()) {
			return executeResultListQuery("findAllOrderByNome", new Serializable[]{});
		}
		return null;
	}
	
}